package com.change.declare.declare.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.change.common.utils.PageUtils;
import com.change.common.utils.Query;

import com.change.declare.declare.dao.OrderpremiumsDao;
import com.change.declare.declare.entity.OrderpremiumsEntity;
import com.change.declare.declare.service.OrderpremiumsService;


@Service("orderpremiumsService")
public class OrderpremiumsServiceImpl extends ServiceImpl<OrderpremiumsDao, OrderpremiumsEntity> implements OrderpremiumsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrderpremiumsEntity> page = this.page(
                new Query<OrderpremiumsEntity>().getPage(params),
                new QueryWrapper<OrderpremiumsEntity>()
        );

        return new PageUtils(page);
    }

}